package com.ndp.fb.rdb.api;


import java.io.Serializable;
import java.util.List;

import com.ndp.fb.rdb.model.AdCampaignGroup;

/**
 * Created by Jacky on 2014/10/23.
 */
public interface AdCampaignRdbService extends Serializable {
    /**
     * @param obj
     * @return
     */
    Long save(AdCampaignGroup obj);


    /**
     * auth:Infi
     * findByCampaignGroupId
     *
     * @param campaignGroupId campaignGroupId
     * @return AdCampaignGroup
     */
    AdCampaignGroup findByCampaignGroupId(Long campaignGroupId);

    /**
     * ADD by Evan 广告批量暂停findByFbAccountIdToPause
     */
    List<Long> findByFbAccountIdToPause(Long fbAccountId);
    List<Long> findByFbConnectObjectId(Long fbConnObjId);
    List<Long> findByFbAccountIdAndTime(Long fbAccountId, String beginTime, String endTime);
    List<Long> findByFbConnectObjectIdAndTime(Long fbConnObjId, String beginTime, String endTime);

    void updateEcTemplateMaterielId(Long campaignGroupId,Long ecTemplateMaterielId);
}
